﻿<UserControl x:Class="XamlaApp.Views.ElementPropertyViews.PanelProperties"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:form="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
    xmlns:prop="clr-namespace:XamlaApp.Views.ElementPropertyViews">
    <StackPanel x:Name="LayoutRoot" Background="White">
        <prop:FrameworkElementProperties></prop:FrameworkElementProperties>
        <form:DataForm CurrentItem="{Binding}">
            <form:DataForm.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="Panel Properties"></TextBlock>
                </DataTemplate>
            </form:DataForm.HeaderTemplate>
            <form:DataForm.EditTemplate>
                <DataTemplate>
                    <StackPanel>
                        <form:DataField>
                            <TextBox Text="{Binding Background, Converter={StaticResource converterColorToText}, Mode=TwoWay}"></TextBox>
                        </form:DataField>
                    </StackPanel>
                </DataTemplate>
            </form:DataForm.EditTemplate>
        </form:DataForm>
    </StackPanel>
</UserControl>
